entry completion: Clarify index in documentation
authorChristian Dywan <christian@twotoasts.de>
Fri, 4 Sep 2009 12:32:00 +0000 (12:32 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 31 Jul 2015 13:11:57 +0000 (09:11 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=579466

gtk/gtkentrycompletion.c

index fb6e5588173381ba2f8e2867dbc8a43dee9e1cd1..b60942ac854f6c241ae0c4d8b1f0377444d96d05 100644 (file)
@@ -1343,6 +1343,9 @@ gtk_entry_completion_insert_action (GtkEntryCompletion *completion,
  * with text @text. If you want the action item to have markup, use
  * gtk_entry_completion_insert_action_markup().
  *
+ * Note that @index_ is a relative position in the list of actions and
+ * the position of an action can change when deleting a different action.
+ *
  * Since: 2.4
  */
 void
@@ -1385,6 +1388,9 @@ gtk_entry_completion_insert_action_markup (GtkEntryCompletion *completion,
  *
  * Deletes the action at @index_ from @completion’s action list.
  *
+ * Note that @index_ is a relative position and the position of an
+ * action may have changed since it was inserted.
+ *
  * Since: 2.4
  */
 void